﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<link rel="Stylesheet" type="text/css" media="screen" href="Screen.css" />
  <title>STP_CALLBACKS</title>
</head>
<body>
	<h3>STP_CALLBACKS</h3>
	<hr />
<pre>
struct STP_CALLBACKS
{
    STP_CALLBACK_ENABLE_BPDU_TRAPPING        <a href="StpCallback_EnableBpduTrapping.html">enableBpduTrapping</a>;
    STP_CALLBACK_ENABLE_LEARNING             <a href="StpCallback_EnableLearning.html">enableLearning</a>;
    STP_CALLBACK_ENABLE_FORWARDING           <a href="StpCallback_EnableForwarding.html">enableForwarding</a>;
    STP_CALLBACK_TRANSMIT_GET_BUFFER         <a href="StpCallback_TransmitGetBuffer.html">transmitGetBuffer</a>;
    STP_CALLBACK_TRANSMIT_RELEASE_BUFFER     <a href="StpCallback_TransmitReleaseBuffer.html">transmitReleaseBuffer</a>;
    STP_CALLBACK_FLUSH_FDB                   <a href="StpCallback_FlushFdb.html">flushFdb</a>;
    STP_CALLBACK_DEBUG_STR_OUT               <a href="StpCallback_DebugStrOut.html">debugStrOut</a>;
    STP_CALLBACK_ON_TOPOLOGY_CHANGE          <a href="StpCallback_OnTopologyChange.html">onTopologyChange</a>;
    STP_CALLBACK_PORT_ROLE_CHANGED           <a href="StpCallback_OnPortRoleChanged.html">onPortRoleChanged</a>;
    STP_CALLBACK_ALLOC_AND_ZERO_MEMORY       <a href="StpCallback_AllocAndZeroMemory.html">allocAndZeroMemory</a>;
    STP_CALLBACK_FREE_MEMORY                 <a href="StpCallback_FreeMemory.html">freeMemory</a>;
};</pre>
	<h4>
		Summary</h4>
	<p>
		Structure containing pointers to application-defined STP callbacks. These callbacks
		implement the hardware-specific and platform-specific functionality required by STP, such
		as enabling forwarding on a physical port, or allocating memory, or displaying debug text
		generated by the STP library.</p>
	<h4>
		Members</h4>
	<p>
		&nbsp;</p>
	<h4>
		Remarks</h4>
	<p>
		All these callbacks are called from within library functions such as <a href="STP_CreateBridge.html">
			STP_CreateBridge</a>, <a href="STP_SetPortPriority.html">STP_SetPortPriority</a>,
		<a href="STP_OnBpduReceived.html">STP_OnBpduReceived</a> etc. With other words,
		first the application calls some library function, then that function calls application&#39;s
		STP callbacks to do hardware-specific work, and then the function returns.</p>
	<p>
			The application is allowed to call from within these callbacks only Get-type library functions. 
			Set-type library functions (those that alter the STP operation) must not be 
			called from within these callbacks.</p>

</body>
</html>
